import java.util.ArrayList;
import java.util.Collections;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 74646
 * Date: 2022-02-23
 * Time: 15:53
 */
class Student{
    private String name;
    private int age;
    private double score;

    public Student(String name, int age, double score) {
        this.name = name;
        this.age = age;
        this.score = score;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public double getScore() {
        return score;
    }

    public void setScore(double score) {
        this.score = score;
    }

    @Override
    public String toString() {
        return "Student{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", score=" + score +
                '}';
    }
}

public class Test {
    public static void main(String[] args) {
        String str1 = "welcome to csdn";
        String str2 = "come";
        ArrayList<String> strings = new ArrayList<>();
        for (int i=0;i<str1.length();i++) {
            char ch = str1.charAt(i);
            if (!str2.contains(ch + "")) {
                strings.add(ch + "");
            }
        }
        for (String str:strings) {
            System.out.print(str);
        }
    }

    public static void main2(String[] args) {
        ArrayList<Integer> integers = new ArrayList<>();
        integers.add(1);
        integers.add(10);
        integers.add(9);
        Collections.sort(integers);
        System.out.println(integers);
        Collections.reverse(integers);
        System.out.println(integers);
    }

    public static void main1(String[] args) {
        ArrayList<Student> arrayList = new ArrayList<>();
        Student student1 = new Student("zs",20,99.6);
        Student student2 = new Student("ls",15,66.6);
        Student student3 = new Student("ww",26,85.6);
        arrayList.add(student1);
        arrayList.add(student2);
        arrayList.add(student3);
        System.out.println(arrayList);
    }
}
